//
//  NSArray+XLSafeAccess.m
//  BaseModule
//
//  Created by 于鹏 on 2017/8/16.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import "NSArray+XLSafeAccess.h"

@implementation NSArray (XLSafeAccess)

- (instancetype)xl_objectWithIndex:(NSUInteger)index {
    if (index < self.count) {
        return self[index];
    } else {
        return nil;
    }
}

@end
